<template>
	<el-config-provider :locale="locale">
		<RouterView />
	</el-config-provider>
</template>
<script setup lang="ts">
import { zhCn, } from 'element-plus/es/locales.mjs';
import { en } from 'element-plus/es/locales.mjs';
import { computed, ref } from 'vue';
import { RouterView } from 'vue-router';

const language = ref('zh-cn')
const locale = computed(() => (language.value === 'zh-cn' ? zhCn : en))

</script>
<style scoped></style>
